package com.ideaaedi.commonspring.event;

import com.ideaaedi.commonspring.entity.dto.RateLimitInfoDTO;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 限流校验事件
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2100.10.17.LTS17
 */
@Getter
public class RateLimitValidateEvent extends ApplicationEvent {

    private final RateLimitInfoDTO rateLimitInfo;

    public RateLimitValidateEvent(RateLimitInfoDTO rateLimitInfo) {
        super(rateLimitInfo);
        this.rateLimitInfo = rateLimitInfo;
    }
}
